<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>

<h3>
	<s:text name="page.heading" />
</h3>
<form class="form-horizontal">
	<div class="form-group">
		<s:actionmessage cssClass="alert alert-success"/>
	</div>
	<div class="control-group">
		<label class="control-label"><s:text name="user.name" /></label>
		<div class="controls">
			<s:textfield cssClass="input-xlarge" name="switchPanel.userName"
				value="sysop" required="true" disabled="true" />
		</div>
	</div>
	<div class="control-group">
		<label class="control-label"><s:text name="user.password" /></label>
		<div class="controls">
			<s:password name="switchPanel.userPassword" cssClass="input-xlarge"
				value="sysop" required="true" showPassword="true" disabled="true" />
		</div>
	</div>
	<div class="control-group">
		<label class="control-label"><s:text
				name="switchPanel.host" /></label>
		<div class="controls">
			<s:textfield name="switchPanel.url" cssClass="input-xlarge"
				placeholder="%{getText('switchPanel.host')}" disabled="true"/>
		</div>
	</div>
	<div class="control-group">
		<label class="control-label"><s:text
				name="switchPanel.protocol" /></label>
		<div class="controls">
			<s:textfield name="switchPanel.protocol" cssClass="input-xlarge"
				placeholder="%{getText('switchPanel.protocol')}" disabled="true"/>
		</div>
	</div>
	<div class="control-group">
		<label class="control-label"><s:text name="port.http" /></label>
		<div class="controls">
			<s:textfield name="switchPanel.httpPort" cssClass="input-small"
				placeholder="%{getText('port.http')}" disabled="true" />
		</div>
	</div>
	<div class="form-actions">
		<s:url action="edit" namespace="/switchPanel" var="switchPanelEditUrl"
			includeParams="none">
			<s:param name="id" value="%{switchPanel.id}" />
		</s:url>
		<sj:a href="%{#switchPanelEditUrl}" targets="targetDiv"
			cssClass="btn btn-primary">
			<s:text name="form.btn.edit" />
		</sj:a>
	</div>
</form>